<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #canvas{
      background-color: lightcoral;
    }
  </style>
</head>
<body>
  <canvas id="canvas" width="500" height="500"></canvas>
  <div>是否有阴影<input type="checkbox" id="shadowCheckbox"></div>
  <div>是否有描边<input type="checkbox" id="strokeCheckbox" checked></div>
  <div>是否填充<input type="checkbox" id="fillCheckbox"></div>
  <div>是否使用渐变色<input type="checkbox" id="gradientCheckbox"></div>
  <script src="index.js">
  </script>
</body>
</html>